import 'package:flutter/material.dart';
import 'package:getwidget/getwidget.dart';
import 'package:meal/constant/sizes.dart';
import 'package:meal/utils/colors.dart';
import 'package:meal/utils/styles.dart';
import 'package:meal/utils/tools.dart';

///
/// 资质信息
///
class AptitudeInfo extends StatefulWidget {
  const AptitudeInfo({Key? key}) : super(key: key);

  @override
  State<AptitudeInfo> createState() => _AptitudeInfoState();
}

class _AptitudeInfoState extends State<AptitudeInfo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: ToolsUtils.getDefaultBackgroundColor(),
      appBar: ToolsUtils.getDefaultBrnAppBar('资质信息'),
      body: SingleChildScrollView(
        child: Column(
          children: [
            Container(
              margin: const EdgeInsets.only(bottom: Sizes.default15),
              padding: const EdgeInsets.symmetric(
                  vertical: Sizes.default10, horizontal: Sizes.default15),
              decoration: const BoxDecoration(color: Colors.white),
              child: ListBody(
                children: [
                  Container(
                    height: Sizes.default35,
                    alignment: Alignment.centerLeft,
                    child: Text('法人姓名：张法人',
                        style: StylesUtils.customTextStyle(color: ColorsUtils.color666)),
                  ),
                  Container(
                    height: Sizes.default35,
                    alignment: Alignment.centerLeft,
                    child: Text('性别：男',
                        style: StylesUtils.customTextStyle(color: ColorsUtils.color666)),
                  ),
                  Container(
                    height: Sizes.default35,
                    alignment: Alignment.centerLeft,
                    child: Text('证件类型：身份证',
                        style: StylesUtils.customTextStyle(color: ColorsUtils.color666)),
                  ),
                  Container(
                    height: Sizes.default35,
                    alignment: Alignment.centerLeft,
                    child: Text('有效日期：2040-10-19',
                        style: StylesUtils.customTextStyle(color: ColorsUtils.color666)),
                  ),
                  Container(
                    height: Sizes.default35,
                    alignment: Alignment.centerLeft,
                    child: Text('身份证正反面',
                        style: StylesUtils.customTextStyle(color: ColorsUtils.color666)),
                  ),
                  Container(
                    margin: const EdgeInsets.only(bottom: Sizes.default20),
                    alignment: Alignment.center,
                    child: const GFImageOverlay(
                        width: 300,
                        height: 200,
                        image: NetworkImage(
                            'https://cdn7.axureshop.com/demo/1525603/images/资质信息/u11166.png')),
                  ),
                  Container(
                    alignment: Alignment.center,
                    child: const GFImageOverlay(
                        width: 300,
                        height: 200,
                        image: NetworkImage(
                            'https://cdn7.axureshop.com/demo/1525603/images/资质信息/u11166.png')),
                  ),
                ],
              ),
            ),
            Container(
              margin: const EdgeInsets.only(bottom: Sizes.default15),
              padding: const EdgeInsets.symmetric(
                  vertical: Sizes.default10, horizontal: Sizes.default15),
              decoration: const BoxDecoration(color: Colors.white),
              child: ListBody(
                children: [
                  Container(
                    height: Sizes.default35,
                    alignment: Alignment.centerLeft,
                    child: Text('证件名称：DTI/营业执照',
                        style: StylesUtils.customTextStyle(color: ColorsUtils.color666)),
                  ),
                  Container(
                    height: Sizes.default35,
                    alignment: Alignment.centerLeft,
                    child: Text('证件编号/注册号：57447645',
                        style: StylesUtils.customTextStyle(color: ColorsUtils.color666)),
                  ),
                  Container(
                    height: Sizes.default35,
                    alignment: Alignment.centerLeft,
                    child: Text('证件有效期：2023-01-23',
                        style: StylesUtils.customTextStyle(color: ColorsUtils.color666)),
                  ),
                  Container(
                    alignment: Alignment.center,
                    child: const GFImageOverlay(
                        width: 300,
                        height: 200,
                        image: NetworkImage(
                            'https://cdn7.axureshop.com/demo/1525603/images/资质信息/u11166.png')),
                  )
                ],
              ),
            ),
            Container(
              padding: const EdgeInsets.symmetric(
                  vertical: Sizes.default10, horizontal: Sizes.default15),
              decoration: const BoxDecoration(color: Colors.white),
              child: ListBody(
                children: [
                  Container(
                    height: Sizes.default35,
                    alignment: Alignment.centerLeft,
                    child: Text('证件名称：DTI/营业执照',
                        style: StylesUtils.customTextStyle(color: ColorsUtils.color666)),
                  ),
                  Container(
                    height: Sizes.default35,
                    alignment: Alignment.centerLeft,
                    child: Text('证件编号/注册号：57447645',
                        style: StylesUtils.customTextStyle(color: ColorsUtils.color666)),
                  ),
                  Container(
                    height: Sizes.default35,
                    alignment: Alignment.centerLeft,
                    child: Text('证件有效期：2023-01-23',
                        style: StylesUtils.customTextStyle(color: ColorsUtils.color666)),
                  ),
                  Container(
                    alignment: Alignment.center,
                    child: const GFImageOverlay(
                        width: 300,
                        height: 200,
                        image: NetworkImage(
                            'https://cdn7.axureshop.com/demo/1525603/images/资质信息/u11166.png')),
                  )
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}
